
const listReducer = (state = {
    dataSource: [],
    current: 1,
    total: 0,
  } , action) => { // {type:'', params: {}}
     switch(action.type){
       case 'UPDATE':
         return {
             ...state,
             ...action.params
         };
        default: 
          return state;
     }
  }
    
  export default listReducer